<template>
<view class="uni-padding-wrap uni-common-pb">
    <view class="fix-box">
        <act-list :list="actList"></act-list>
    </view>
    <!-- <view class="card-box" @click="goAct(item.Id)" v-for="(item,index) in actList" :key="index">
        <image :src="item.img?item.img:dfimg"></image>
        <view class="title-box">
            <view class="time">{{item.atime}}</view>
            <view class="tit">{{item.name}}</view>
        </view> 
    </view>         -->
</view>
</template>
<script>
import {formatObjDate,get,post} from '@/utils/index';
import {getActList,getActDetails,getSignList,signUp} from '@/utils/api';
import actList from '../../../components/act-list.vue'
export default {
    components: {
        actList
    },
    data () {
        return {
            actList:[],
            dfimg:'../../../static/shuijiao.jpg'
        }
    },
    computed:{
        
    },
    mounted(){
        // console.log(formatTime(1546064719))
        this.init();
    },
    methods:{
        init(){
            this.getActList()
        },
        getActList(){
            var that = this;
            uni.showNavigationBarLoading();
            this.more  = true;
            get(getActList,{}, true)
            .then((res)=>{
                console.log(98,res)
                formatObjDate(res).then((data)=>{
                    this.actList = data
                })
                uni.hideNavigationBarLoading();
            })
        },
        goAct(id){
            uni.navigateTo({
                url: '/pages/tabBar/act/actShow?id='+id
            });
        }
    },
    filters: {
      
    }

}
</script>

<style scoped>
.fix-box{
    margin:40upx 0 0 0;
}
</style>
